package edu.zust.zw.shop.db.dao.domain;

import java.util.ArrayList;
import java.util.List;

public class ShopWareDomainExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShopWareDomainExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWareIdIsNull() {
            addCriterion("ware_id is null");
            return (Criteria) this;
        }

        public Criteria andWareIdIsNotNull() {
            addCriterion("ware_id is not null");
            return (Criteria) this;
        }

        public Criteria andWareIdEqualTo(String value) {
            addCriterion("ware_id =", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdNotEqualTo(String value) {
            addCriterion("ware_id <>", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdGreaterThan(String value) {
            addCriterion("ware_id >", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdGreaterThanOrEqualTo(String value) {
            addCriterion("ware_id >=", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdLessThan(String value) {
            addCriterion("ware_id <", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdLessThanOrEqualTo(String value) {
            addCriterion("ware_id <=", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdLike(String value) {
            addCriterion("ware_id like", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdNotLike(String value) {
            addCriterion("ware_id not like", value, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdIn(List<String> values) {
            addCriterion("ware_id in", values, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdNotIn(List<String> values) {
            addCriterion("ware_id not in", values, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdBetween(String value1, String value2) {
            addCriterion("ware_id between", value1, value2, "wareId");
            return (Criteria) this;
        }

        public Criteria andWareIdNotBetween(String value1, String value2) {
            addCriterion("ware_id not between", value1, value2, "wareId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdIsNull() {
            addCriterion("ware_class_id is null");
            return (Criteria) this;
        }

        public Criteria andWareClassIdIsNotNull() {
            addCriterion("ware_class_id is not null");
            return (Criteria) this;
        }

        public Criteria andWareClassIdEqualTo(String value) {
            addCriterion("ware_class_id =", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotEqualTo(String value) {
            addCriterion("ware_class_id <>", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdGreaterThan(String value) {
            addCriterion("ware_class_id >", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdGreaterThanOrEqualTo(String value) {
            addCriterion("ware_class_id >=", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdLessThan(String value) {
            addCriterion("ware_class_id <", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdLessThanOrEqualTo(String value) {
            addCriterion("ware_class_id <=", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdLike(String value) {
            addCriterion("ware_class_id like", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotLike(String value) {
            addCriterion("ware_class_id not like", value, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdIn(List<String> values) {
            addCriterion("ware_class_id in", values, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotIn(List<String> values) {
            addCriterion("ware_class_id not in", values, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdBetween(String value1, String value2) {
            addCriterion("ware_class_id between", value1, value2, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andWareClassIdNotBetween(String value1, String value2) {
            addCriterion("ware_class_id not between", value1, value2, "wareClassId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdIsNull() {
            addCriterion("exp_ware_id is null");
            return (Criteria) this;
        }

        public Criteria andExpWareIdIsNotNull() {
            addCriterion("exp_ware_id is not null");
            return (Criteria) this;
        }

        public Criteria andExpWareIdEqualTo(String value) {
            addCriterion("exp_ware_id =", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotEqualTo(String value) {
            addCriterion("exp_ware_id <>", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdGreaterThan(String value) {
            addCriterion("exp_ware_id >", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdGreaterThanOrEqualTo(String value) {
            addCriterion("exp_ware_id >=", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdLessThan(String value) {
            addCriterion("exp_ware_id <", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdLessThanOrEqualTo(String value) {
            addCriterion("exp_ware_id <=", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdLike(String value) {
            addCriterion("exp_ware_id like", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotLike(String value) {
            addCriterion("exp_ware_id not like", value, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdIn(List<String> values) {
            addCriterion("exp_ware_id in", values, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotIn(List<String> values) {
            addCriterion("exp_ware_id not in", values, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdBetween(String value1, String value2) {
            addCriterion("exp_ware_id between", value1, value2, "expWareId");
            return (Criteria) this;
        }

        public Criteria andExpWareIdNotBetween(String value1, String value2) {
            addCriterion("exp_ware_id not between", value1, value2, "expWareId");
            return (Criteria) this;
        }

        public Criteria andWareNameIsNull() {
            addCriterion("ware_name is null");
            return (Criteria) this;
        }

        public Criteria andWareNameIsNotNull() {
            addCriterion("ware_name is not null");
            return (Criteria) this;
        }

        public Criteria andWareNameEqualTo(String value) {
            addCriterion("ware_name =", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameNotEqualTo(String value) {
            addCriterion("ware_name <>", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameGreaterThan(String value) {
            addCriterion("ware_name >", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameGreaterThanOrEqualTo(String value) {
            addCriterion("ware_name >=", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameLessThan(String value) {
            addCriterion("ware_name <", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameLessThanOrEqualTo(String value) {
            addCriterion("ware_name <=", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameLike(String value) {
            addCriterion("ware_name like", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameNotLike(String value) {
            addCriterion("ware_name not like", value, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameIn(List<String> values) {
            addCriterion("ware_name in", values, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameNotIn(List<String> values) {
            addCriterion("ware_name not in", values, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameBetween(String value1, String value2) {
            addCriterion("ware_name between", value1, value2, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareNameNotBetween(String value1, String value2) {
            addCriterion("ware_name not between", value1, value2, "wareName");
            return (Criteria) this;
        }

        public Criteria andWareDetailIsNull() {
            addCriterion("ware_detail is null");
            return (Criteria) this;
        }

        public Criteria andWareDetailIsNotNull() {
            addCriterion("ware_detail is not null");
            return (Criteria) this;
        }

        public Criteria andWareDetailEqualTo(String value) {
            addCriterion("ware_detail =", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailNotEqualTo(String value) {
            addCriterion("ware_detail <>", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailGreaterThan(String value) {
            addCriterion("ware_detail >", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailGreaterThanOrEqualTo(String value) {
            addCriterion("ware_detail >=", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailLessThan(String value) {
            addCriterion("ware_detail <", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailLessThanOrEqualTo(String value) {
            addCriterion("ware_detail <=", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailLike(String value) {
            addCriterion("ware_detail like", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailNotLike(String value) {
            addCriterion("ware_detail not like", value, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailIn(List<String> values) {
            addCriterion("ware_detail in", values, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailNotIn(List<String> values) {
            addCriterion("ware_detail not in", values, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailBetween(String value1, String value2) {
            addCriterion("ware_detail between", value1, value2, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWareDetailNotBetween(String value1, String value2) {
            addCriterion("ware_detail not between", value1, value2, "wareDetail");
            return (Criteria) this;
        }

        public Criteria andWarePicIsNull() {
            addCriterion("ware_pic is null");
            return (Criteria) this;
        }

        public Criteria andWarePicIsNotNull() {
            addCriterion("ware_pic is not null");
            return (Criteria) this;
        }

        public Criteria andWarePicEqualTo(String value) {
            addCriterion("ware_pic =", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicNotEqualTo(String value) {
            addCriterion("ware_pic <>", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicGreaterThan(String value) {
            addCriterion("ware_pic >", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicGreaterThanOrEqualTo(String value) {
            addCriterion("ware_pic >=", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicLessThan(String value) {
            addCriterion("ware_pic <", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicLessThanOrEqualTo(String value) {
            addCriterion("ware_pic <=", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicLike(String value) {
            addCriterion("ware_pic like", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicNotLike(String value) {
            addCriterion("ware_pic not like", value, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicIn(List<String> values) {
            addCriterion("ware_pic in", values, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicNotIn(List<String> values) {
            addCriterion("ware_pic not in", values, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicBetween(String value1, String value2) {
            addCriterion("ware_pic between", value1, value2, "warePic");
            return (Criteria) this;
        }

        public Criteria andWarePicNotBetween(String value1, String value2) {
            addCriterion("ware_pic not between", value1, value2, "warePic");
            return (Criteria) this;
        }

        public Criteria andWareStatuIsNull() {
            addCriterion("ware_statu is null");
            return (Criteria) this;
        }

        public Criteria andWareStatuIsNotNull() {
            addCriterion("ware_statu is not null");
            return (Criteria) this;
        }

        public Criteria andWareStatuEqualTo(Integer value) {
            addCriterion("ware_statu =", value, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuNotEqualTo(Integer value) {
            addCriterion("ware_statu <>", value, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuGreaterThan(Integer value) {
            addCriterion("ware_statu >", value, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuGreaterThanOrEqualTo(Integer value) {
            addCriterion("ware_statu >=", value, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuLessThan(Integer value) {
            addCriterion("ware_statu <", value, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuLessThanOrEqualTo(Integer value) {
            addCriterion("ware_statu <=", value, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuIn(List<Integer> values) {
            addCriterion("ware_statu in", values, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuNotIn(List<Integer> values) {
            addCriterion("ware_statu not in", values, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuBetween(Integer value1, Integer value2) {
            addCriterion("ware_statu between", value1, value2, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWareStatuNotBetween(Integer value1, Integer value2) {
            addCriterion("ware_statu not between", value1, value2, "wareStatu");
            return (Criteria) this;
        }

        public Criteria andWarePriceIsNull() {
            addCriterion("ware_price is null");
            return (Criteria) this;
        }

        public Criteria andWarePriceIsNotNull() {
            addCriterion("ware_price is not null");
            return (Criteria) this;
        }

        public Criteria andWarePriceEqualTo(Double value) {
            addCriterion("ware_price =", value, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceNotEqualTo(Double value) {
            addCriterion("ware_price <>", value, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceGreaterThan(Double value) {
            addCriterion("ware_price >", value, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceGreaterThanOrEqualTo(Double value) {
            addCriterion("ware_price >=", value, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceLessThan(Double value) {
            addCriterion("ware_price <", value, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceLessThanOrEqualTo(Double value) {
            addCriterion("ware_price <=", value, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceIn(List<Double> values) {
            addCriterion("ware_price in", values, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceNotIn(List<Double> values) {
            addCriterion("ware_price not in", values, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceBetween(Double value1, Double value2) {
            addCriterion("ware_price between", value1, value2, "warePrice");
            return (Criteria) this;
        }

        public Criteria andWarePriceNotBetween(Double value1, Double value2) {
            addCriterion("ware_price not between", value1, value2, "warePrice");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIsNull() {
            addCriterion("last_update_at is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIsNotNull() {
            addCriterion("last_update_at is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtEqualTo(Long value) {
            addCriterion("last_update_at =", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotEqualTo(Long value) {
            addCriterion("last_update_at <>", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtGreaterThan(Long value) {
            addCriterion("last_update_at >", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtGreaterThanOrEqualTo(Long value) {
            addCriterion("last_update_at >=", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtLessThan(Long value) {
            addCriterion("last_update_at <", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtLessThanOrEqualTo(Long value) {
            addCriterion("last_update_at <=", value, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtIn(List<Long> values) {
            addCriterion("last_update_at in", values, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotIn(List<Long> values) {
            addCriterion("last_update_at not in", values, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtBetween(Long value1, Long value2) {
            addCriterion("last_update_at between", value1, value2, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andLastUpdateAtNotBetween(Long value1, Long value2) {
            addCriterion("last_update_at not between", value1, value2, "lastUpdateAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtIsNull() {
            addCriterion("create_at is null");
            return (Criteria) this;
        }

        public Criteria andCreateAtIsNotNull() {
            addCriterion("create_at is not null");
            return (Criteria) this;
        }

        public Criteria andCreateAtEqualTo(Long value) {
            addCriterion("create_at =", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotEqualTo(Long value) {
            addCriterion("create_at <>", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtGreaterThan(Long value) {
            addCriterion("create_at >", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtGreaterThanOrEqualTo(Long value) {
            addCriterion("create_at >=", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtLessThan(Long value) {
            addCriterion("create_at <", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtLessThanOrEqualTo(Long value) {
            addCriterion("create_at <=", value, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtIn(List<Long> values) {
            addCriterion("create_at in", values, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotIn(List<Long> values) {
            addCriterion("create_at not in", values, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtBetween(Long value1, Long value2) {
            addCriterion("create_at between", value1, value2, "createAt");
            return (Criteria) this;
        }

        public Criteria andCreateAtNotBetween(Long value1, Long value2) {
            addCriterion("create_at not between", value1, value2, "createAt");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}